package com.tju.resource.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 出货跟耗材关联表
 * @TableName tb_shipment_consumables
 */
@TableName(value ="tb_shipment_consumables")
@Data
public class TbShipmentConsumables implements Serializable {
    /**
     * 关联出货和耗材id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 出货id
     */
    private Long shipmentId;

    /**
     * 耗材id
     */
    private Long consumablesId;

    /**
     * 出货耗材数量
     */
    private Long shipmentMaterialNumber;
    /**
     * 耗材对象
     */
    @TableField(exist = false)
    private TbConsumables consumables;
}